<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 算数运算符,浮点数计算时会出现故障
        console.log(1 + 1);
        console.log(1 - 1);
        console.log(1 * 1);
        console.log(1 / 1);
        console.log(5 % 3);
        console.log(2.20 + 1.00);
        // 前置递增运算符++m,类似于m=m+1，先自加1，后返回值
        var age = 0;
        ++age;
        console.log(age);
        // 后置递增运算符，先返回原值，后自加1,常用
        var age1 = 0;
        age1++;
        console.log(age1);
        var p = 10;
        console.log(++p + 10);
        var e = 10;
        var f = e++ + ++e;
        console.log(f);//22
    </script>
</head>

<body>

</body>

</html>